import http from '@/apis/http'
import { aiLearn, dreamQuestionBank } from '../host.js'

// 获取任务下的题目列表（大屏讲题）
export function getQuestionList(params) {
  return http.get(`${aiLearn}/api/v1/taskCenterNew/getTaskQuestionList`, {
    params
  })
}

/**
 * 获取小猿推题视频
 * @param {*} params
 * @returns
 */
export function getRecommendVideo(params) {
  return http.post(
    `${dreamQuestionBank}/v1/question/video/auto-recommend`,
    params
  )
}

/**
 * 获取题目视频
 */
export function getQuestionVideo(params) {
  return http.post(`${dreamQuestionBank}/v1/question/videos/summary`, params)
}

// 获取任务下某一题目所有学生的作答详情
export function getResponseOfDetail(params) {
  return http.get(`${aiLearn}/api/v1/taskCenterNew/getTaskQuestionResponse`, {
    params
  })
}
